Skip to content

TRCLI-225: Version update notifications + new update command#392

Merged
acuanico-tr-galt merged 5 commits intorelease/1.13.3from
feature/TRCLI-225
Mar 5, 2026
Merged

TRCLI-225: Version update notifications + new update command#392
acuanico-tr-galt merged 5 commits intorelease/1.13.3from
feature/TRCLI-225

Conversation

@acuanico-tr-galt
Copy link
Copy Markdown
Collaborator

Solution description

  • Automatic Version Checker: Queries PyPI once per 24 hours (cached) and displays a non-blocking warning when a newer version is available. Uses the packaging library for semantic version comparison.
  • Update Command: Added trcli update command that wraps pip install --upgrade trcli with interactive confirmation, version comparison display, and comprehensive error handling. Supports --check-only and --force flags.

Changes

  • trcli/version_checker.py - Version checking logic with PyPI API integration and caching
  • trcli/commands/cmd_update.py - Update command implementation
  • tests/test_version_checker.py - 34 unit tests for version checker
  • tests/test_cmd_update.py - 13 unit tests for update command

Potential impacts

No breaking changes. Update notifications are non-intrusive and caching is in place.

Steps to test

  • Test with different commands to ensure version check doesn't interfere. All should work normally with version check in background.
  • run trcli update -> Should tell the current installed and latest version.

PR Tasks

  • PR reference added to issue
  • README updated
  • Unit tests added/updated

Base automatically changed from release/1.13.2 to main February 24, 2026 11:02
@acuanico-tr-galt acuanico-tr-galt changed the base branch from main to release/1.13.3 February 25, 2026 08:35
@acuanico-tr-galt acuanico-tr-galt merged commit ec1ee8a into release/1.13.3 Mar 5, 2026
3 checks passed
@acuanico-tr-galt acuanico-tr-galt deleted the feature/TRCLI-225 branch March 5, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant